const equi = () => screen.height >= 810 && /iPhone/g.test(navigator.userAgent)
//1   iPhone      2   Android   3 其他
export const mobile = () => /iPhone/g.test(navigator.userAgent) ? 1 : /Android/g.test(navigator.userAgent) ? 2 : 3;
export default equi;


const mobileList = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
export const isPc = mobileList.every(v => !navigator.userAgent.includes(v));




export var isHas = false;
export var userLogin = false;


export function getIsLz() {
    var nowIs = isHas;
    isHas = true;
    setTimeout(() => isHas = false, 5000);
    return nowIs;
}

export function getIsFalse() { isHas = false };


export var isConfirm = () => userLogin;

export var beLogin = () => userLogin = true;

export var logoutLz = () => userLogin = false;

export var isToken = () => !!localStorage.getItem('token');
